const Generic = require('./Generic');

class News extends Generic {
    getList(params) {
        // console.log(params)
        return this.get('/shuangchuang/admin/list/news', { page: 1, pageSize: 10, ...params})
    }

    getDetail (id) {
        return this.get('/shuangchuang/admin/detail/news', { id })
    }
}

module.exports = new News();